package com.chrray.position.pojo.dto.web;

import com.chrray.position.pojo.dto.util.BasePageDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalTime;
import java.util.List;

/**
 *报警设置
 *@author lm 
**/
@Data
@ApiModel(value ="报警设置AlarmSettingDto",description = "报警设置AlarmSettingDto")
public class AlarmSettingDto extends BasePageDto {


	/**
	 * 1-7
	 */
	@ApiModelProperty(value = "1-7")
	private List<Integer> weekDay;

	/**
	 * 开始时间
	 */
	@ApiModelProperty(value = "开始时间")
    @DateTimeFormat( pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone="GMT+8")
	private LocalTime startTime;

	/**
	 * 结束时间
	 */
	@ApiModelProperty(value = "结束时间")
    @DateTimeFormat( pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone="GMT+8")
	private LocalTime endTime;



}
